﻿@using vITs.Site.Models.DataModels
@{
    var guid = System.Guid.NewGuid().ToString();
}

<div class="accountSelector" id="@guid">
    <fieldset>
        <legend>Konto</legend>
        <label for="ddl-@guid">Konto:</label>
        <br />
        <select name="ddl-@guid" id="ddl-@guid">
            @foreach (Account account in this.ViewBag.Accounts)
            { 
                <option value="@account.AccountId">@account.Name</option>
            }
        </select>
        <br />
        <label for="percent-@guid">Procent:</label>
        <br />
        <input type="text" name="percent-@guid" id="percent-@guid" />
        <br />
        <input type="button" value="Ta bort konto" onclick="javascript:tripPoster.removeAccount('@guid');" />
    </fieldset>
</div>